string to array in php

44

$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
$array = explode(' ', $string);
$array = str_split($string);

Comments

Submit
0 Comments